package com.lecture.springlecture.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @program: spring-lecture
 * @description: 配置
 * @author: luyn
 * @create: 2020-03-21 19:41
 **/
@Data
@Component
public class MyConfigBean {

    @Value("${myConfig.myUser.name}")
    private String name;

    @Value("${myConfig.myUser.age}")
    private int age;
}
